import request from '@/utils/request'

// 查询边民额度管理列表
export function listBpAmount(query) {
  return request({
    url: '/bt/bpAmount/list',
    method: 'get',
    params: query
  })
}

// 查询边民额度明细列表
export function listBpAmountList(query) {
  return request({
    url: '/bt/btAmountList/list',
    method: 'get',
    params: query
  })
}

// 查询边民额度管理详细
export function getBpAmount(id) {
  return request({
    url: '/bt/bpAmount/getInfo/' + id,
    method: 'get'
  })
}

// 新增边民额度管理
export function addBpAmount(data) {
  return request({
    url: '/bt/bpAmount/add',
    method: 'post',
    data: data
  })
}

// 修改边民额度管理
export function updateBpAmount(data) {
  return request({
    url: '/bt/bpAmount/edit',
    method: 'post',
    data: data
  })
}

// 删除边民额度管理
export function delBpAmount(id) {
  return request({
    url: '/bt/bpAmount/remove/' + id,
    method: 'get'
  })
}

// 导出边民额度管理
export function exportBpAmount(query) {
  return request({
    url: '/bt/bpAmount/export',
    method: 'get',
    params: query
  })
}
